package com.wy.springbootblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wy.springbootblog.pojo.Article;
import com.wy.springbootblog.pojo.Result;
import com.wy.springbootblog.pojo.SearchBean;

import java.util.List;

/**
 * @author work
 */
public interface ArticleService extends IService<Article> {

    public Result<Void> saveArticle(Article article);

    public Result<Void> deleteArticle(Integer id);

    Result<List<Article>> articleList(SearchBean<Article> searchBean);

    Result<Void> updateArticle(Article article);

    Result<Article> articleDetail(Integer id);

    void increaseViews(Integer id);
}
